<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="__PUBLIC__/Images/favicon.ico"/>
<title>{:C('WEB_TITLE')} - 注册系统 - Powerby {:C('OFFICIAL_NAME')}</title>
	<include file="Public:header" />
	
	<style type="text/css">
		input,textarea{width:250px;border:1px solid #ccc;padding:2px;}
	</style>
	<script type="text/javascript" src="__PUBLIC__/jquery-easyui/jquery.cookie.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#dd').dialog({
				buttons:[{
					text:'注册',
					iconCls:'icon-ok',
					handler:function(){
						return chk_frm();
					}
				},{
					text:'关闭',
					handler:function(){
						$('#dd').dialog('close');
					}
				}]
			});
		});
		function open1(){
			$('#dd').dialog('open');
		}
		function chk_frm(){
			if($('#register_code').val()!='' && $('#register_code').val()!='')
			{
					$('#frmlogin').submit();
					return true;
			}
			else
			{
					$.messager.alert('SYSTEM','请输入注册码','warning');					
					return false;
			}
		}
		function EnterPress(e)
		{
			var e = e || window.event; 
			if(e.keyCode == 13){ 
				return chk_frm();
			} 
		}
		window.onload=function()
		{
			
		}
	</script>
</head>
<body class="misone_login_bg">
	<div style="margin:0px; pidding:0px; position: absolute; top:50px; left:0px;"><img src="{:C('WEB_LOGO')}" style="border:0px;" /></div>
	<div style="margin:0px; pidding:0px; position: absolute; top:0px; left:0px; width:100%;">
	<div class="demo-info" style="height:26px;">
		<div class="demo-tip icon-tip"></div>
		<div style="float:left;">
		使用官方授权码进行注册&nbsp;&nbsp;&nbsp;&nbsp;		
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon-misonelogo" onclick="open1()">注册系统</a>			
		</div>
		
		<div style="float:right;"><div class="icon-misonelogo" style="float:left; width:20px; height:20px;"></div>Copyright&nbsp;&nbsp;{:C('OFFICIAL_NAME')}&nbsp;&nbsp;&copy;2012</div>
	</div>
	</div>

	
	<div id="dd" title="注册系统" icon="icon-misonelogogif" style="padding:5px;width:400px;height:200px;">
	<form id="frmlogin" name="frmlogin" method="post" action="{:U('Public/register_save')}">
	<table>
		<tr>
			<td>请求码:</td>
			<td><input id="request_code" name="request_code" type="text" value="{$request_code}" class="easyui-validatebox" required="true" readonly="true"  />
			<a href="{:C('OFFICIAL_URL')}" target="_blank">去官网</a>
			</td>
		</tr>
		<tr>
			<td>注册码:</td>
			<td><input id="register_code" name="register_code" type="text" class="easyui-validatebox" required="true" onkeypress="EnterPress(event)" onkeydown="EnterPress()" /></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
	</table>
	</form>
	</div>
</body>
</html>